package team.you.ticket.service;

import org.springframework.web.multipart.MultipartFile;
import team.you.ticket.pojo.Result;
import team.you.ticket.pojo.User;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    //图片上传
    Result upImg(MultipartFile file, HttpServletRequest request);
    //获取验证码：注册
    Result mobileCode(String phone, HttpServletRequest request);
    //用户注册
    Result register(User user);
    //用户登录
    Result login(String remember, String username, String password, String code, HttpServletRequest request);
    //获取所有用户信息
    Result getAllUsers(Integer page,Integer limit);
    //单行删除
    Result del(String id);
    //多行删除
    Result delete(String[] ids);
    //单元格更新
    Result update(String id, String value, String field);
    //用户名实时验证是否存在
    Result userNameChange(String value);
    //模糊查询
    Result selectByLike(String value, String type, Integer page, Integer limit);
    //密码修改
    Result pwd(String username, String mobileCode, HttpServletRequest request);
    //获取验证码：密码重置
    Result getCode(String username, HttpServletRequest request);
    //信息修改验证码
    Result updateInfoCode(String id, HttpServletRequest request);
    //信息修改
    Result updateInfo(String id,String mobileCode, String username, String password, String phone, String papers, String remarks, HttpServletRequest request);
    //用户信息预加载
    Result InfoLoad(String userid);
    //加载用户协议
    Result getMsg();
}
